package ai.people.core.standard.gather.entity;

import ai.people.netmon.framework.domain.userconfig.entity.UserCollectConfigKeywords;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 说明
 *
 * @author zhenglin
 * @since 2022/3/9
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserConfigKeywordData {
    /**
     * 采集关键词
     */
    private String crawlKeywords;
    /**
     * 信源类别
     */
    private String infoType;

    /**
     * 采集频次，预留值，秒级
     */
    private String crawlInterval;

    /**
     * 用户唯一标识
     */
    private String userId;

    /**
     * 合作伙伴ID
     */
    private String partnerId;

    public UserConfigKeywordData(UserCollectConfigKeywords keywords){
        this.crawlKeywords = keywords.getCrawlKeywords();
        this.infoType = keywords.getInfoType();
        this.crawlInterval = keywords.getCrawlInterval();
        this.userId = keywords.getUserId();
        this.partnerId = keywords.getPartnerId();
    }
}
